package com.inspur.cloud.entity.dataspace.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "Yarn DTO 对象")
public class YarnDTO {
    //队列名
    @ApiModelProperty(value = "队列名字", required = true)
    private String queueName;

    public Float getRatio() {
        return ratio>100f?100f:ratio;
    }

    public void setRatio(Float ratio) {
        this.ratio = ratio;
    }

    @ApiModelProperty(value = "队列占比，请使用这个字段", required = true)
    private Float ratio;

    @ApiModelProperty(value = "队列id，编辑的时候必传")
    private Integer id;

}
